<?php
/*
 *  A Part of snock project
 *   Author king-of-war
 * Last modified 2009-4-5
 */
session_start();
/*
 * check the result of function isMember to verify the passport
 */
/*
 *
 * check identify
 */
 $root_path='../';
include_once $root_path.'admin/class/verify.class.php';
$a=new verify($root_path);
$a->identity_check(2);

if(!empty($_SESSION['name'])){
	unset($_SESSION['name']);
	session_destroy();
	if(empty($_SESSION['name']))
	{			$info='Logged out ';
		   echo $info;

	//	header('location: login.php');
			echo '<script language="javascript">window.parent.location(login.php)</script>' ;
		    	}else{
			$info='Logged out Fail';
	echo $info;

		header('location: login.php');
		echo '<script language="javascript">window.parent.location(login.php)</script>' ;

		}
}else{
	$info='Please login first';
  echo $info;

		header('location: login.php');
	echo '<script language="javascript">window.parent.location(login.php)</script>' ;
		}
	?>

